﻿@model QuanLyCCN.District

@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_Home.cshtml";
}

<h2>Add</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>District</legend>

        <div class="editor-label">
            Ma Nhan Dang
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.maNhanDang)
            @Html.ValidationMessageFor(model => model.maNhanDang)
        </div>

        <div class="editor-label">
            Ten Thanh Pho/Huyen
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ten)
            @Html.ValidationMessageFor(model => model.ten)
        </div>

        <div class="editor-label">
            Hien Thi
        </div>
        <div class="editor-field">
            <input type="checkbox" id="hienthi" name="hienthi" />
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

